package com.veigar.newpants.mapper;

import com.veigar.newpants.pojo.DiscussPost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DisscussPostMapper {

    List<DiscussPost> selectDiscussPosts(int userId, int offset, int limit);

    //param注解用于给参数起别名
    int selectDiscussPostRows(@Param("userId") int userId);
}
